<?php
session_start();
include '../c/config.php';
$access_token = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid='.$appId.'&secret='.$secret.'&code='.$_GET['code'].'&grant_type=authorization_code';
$access = file_get_contents($access_token);
$getData = json_decode($access, true);
  
$openid=$getData['openid'];

 

header('Location: http://climb-game.51wom.com/zhuan/?op='.$openid);
exit;
 
 

